package com.qf.shixi.util;

import org.apache.shiro.crypto.hash.Md5Hash;

public class Md5Util {

    public static String getSys(String uname,String password){
        Md5Hash md5Hash = new Md5Hash(password, uname, 1000);
        return md5Hash.toString();
    }

    public static String getMy(Integer mid,String password){
        Md5Hash md5Hash = new Md5Hash(password, mid, 1000);
        return md5Hash.toString();
    }

    public static void main(String[] args) {
        String s = "/sysUser/api/login/0234HL000jAYDM1m7V200ggYHc34HL08";
        String s1 = "/sysUser/api/login/";
        String m = "/my/space/login";
        String m1 = "/my/space/login/0234HL000jAYDM1m7V200ggYHc34HL08";
        System.out.println(s.contains(s1));
    }
}
